package cn.three.servlet;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import cn.three.biz.ShopdaoBiz;
import cn.three.eneity.Classify;
import cn.three.eneity.Shop;

public class coakeServlet extends HttpServlet{
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
			req.setCharacterEncoding("UTF-8");
			resp.setCharacterEncoding("UTF-8");
			ShopdaoBiz biz=new ShopdaoBiz();
			Shop shop=new Shop();
			
			List<Shop> list=biz.showtwoShops(13);
			HttpSession session=req.getSession();
			if(list.size()>0){
				session.setAttribute("list", list);
				resp.sendRedirect("mainform.jsp");
			}
			
	}


}
